
class student(object):
    def __init__(self, name, age):
        self.name = name
        self.age = age
    def __eq__(self, obj):
        return self.name == obj.name and self.age == obj.age

a = student('wangbo',11)
b = student('wangbo',11)
c = []
c.append(a)
if b in c:
    print('pass')

